import re


def replace_emoji(nick_name):
    # 替换掉昵称中emoji标签
    nick_name = nick_name.encode("unicode_escape")
    p = rb'\\U[\w|\d]{8}'
    nick_name = re.sub(re.compile(p), b'*', nick_name)
    nick_name = nick_name.decode('unicode_escape')
    return nick_name
